import request from '@/utils/request'

// 查询车辆领用单列表
export function listVehicleForm(query) {
  return request({
    url: '/service/vehicleForm/list',
    method: 'get',
    params: query
  })
}

// 查询车辆领用单详细
export function getVehicleForm(id) {
  return request({
    url: '/service/vehicleForm/' + id,
    method: 'get'
  })
}

// 新增车辆领用单
export function addVehicleForm(data) {
  return request({
    url: '/service/vehicleForm',
    method: 'post',
    data: data
  })
}

// 修改车辆领用单
export function updateVehicleForm(data) {
  return request({
    url: '/service/vehicleForm',
    method: 'put',
    data: data
  })
}

// 删除车辆领用单
export function delVehicleForm(id) {
  return request({
    url: '/service/vehicleForm/' + id,
    method: 'delete'
  })
}
